-- GENERATED SPELL FOR [Grim Patron] --


function spell0_9545(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(15610,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9545', 6320, 1)
end

function Sorts_9545(pUnit, Event)
local choix_sorts_9545 = math.random(0, 0)
if choix_sorts_9545 == 0 then
pUnit:RegisterEvent('spell0_9545', 1, 1)
end
end

function mob9545_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9545', math.random(1500, 3000), 1)
end

function mob9545_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9545_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9545_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9545, 1, 'mob9545_Action')
RegisterUnitEvent(9545, 2, 'mob9545_Leave')
RegisterUnitEvent(9545, 3, 'mob9545_Kill')
RegisterUnitEvent(9545, 4, 'mob9545_Die')
